package com.hilin.test.fs;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class FsListener implements IFsListener {
    @Override
    public void call(CCEvent event) {
        log.info("呼叫进入 {}", event.toString());
        WebsocketConnect.send(event.toString());
    }

    @Override
    public void callin(CCEvent event) {
        log.info("呼入 {}", event.toString());
        WebsocketConnect.send(event.toString());
    }

    @Override
    public void callout(CCEvent event) {
        log.info("呼出 {}", event.toString());
        WebsocketConnect.send(event.toString());
    }

    @Override
    public void answer(CCEvent event) {
        log.info("接听 {}", event.toString());
        WebsocketConnect.send(event.toString());
    }

    @Override
    public void switchAgent(CCEvent event) {
        log.info("切换 {}", event.toString());
        WebsocketConnect.send(event.toString());
    }

    @Override
    public void hangup(CCEvent event) {
        log.info("挂断 {}", event.toString());
        WebsocketConnect.send(event.toString());
    }
}
